import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Image;

import javax.swing.BorderFactory;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;

public class LogoPanel extends JPanel {


	//public Image i;
	public ImageIcon icon;
	public JLabel label;
	public LogoPanel() {
		
		this.setBackground(Color.black);
		this.setBorder(BorderFactory.createMatteBorder(10, 0, 10, 0, new Color(43, 43, 43)));
		this.setPreferredSize(new Dimension(205, 80));
		this.setLayout(new GridBagLayout());
		GridBagConstraints gbc = new GridBagConstraints();
		
		icon = new ImageIcon("logo.png");
		
		//i = new ImageIcon("EmblemMarathon.png").getImage();

		label = new JLabel("GENERALS", icon, JLabel.LEADING);
		label.setForeground(Color.white);
		label.setFont(new Font("Courier", Font.BOLD, 22));
		this.add(label, gbc);
	}
	public void setText(String arg1){
		label.setText(arg1);
	}

	//public void paintComponent(Graphics g) {
	//	g.drawImage(i, 0, 0, this.getWidth(), this.getHeight(), null);
	//}
}
